package lu.med.praxiswahl.wahlumed.client.rechnungen.op.view;

import javax.swing.JTable;
import javax.swing.ListSelectionModel;

import lu.med.praxiswahl.wahlumed.client.rechnungen.op.controller.OPSettlementTableSelectionListener;
import lu.med.praxiswahl.wahlumed.client.rechnungen.op.model.OPSettlementCodeTableModel;

public class OPSettlementTable extends JTable
{

    /**
     * 
     */
    private static final long serialVersionUID = 982026049796343727L;

    public OPSettlementTable(OPSettlementCodeTableModel model)
    {
	super(model);
	this.setRowHeight(30);
	this.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
	this.selectionModel = getSelectionModel();
	this.selectionModel
		.addListSelectionListener(new OPSettlementTableSelectionListener(
			model));
    }
}
